package flc.ast;

import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.databinding.ViewDataBinding;

import stark.common.basic.base.BaseNoModelActivity;
import stark.common.basic.utils.StatusBarUtils;

/**
 * create by fanlc
 * on 4/20/21
 * description
 */
public abstract class BaseAc<DB extends ViewDataBinding> extends BaseNoModelActivity<DB> {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        StatusBarUtils.with(this).init();
        StatusBarUtils.setStatusBarTranslate(this);
        //设置状态栏字体颜色
        //StatusBarUtils.setStatusBarTranslate(this, View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
        StatusBarUtils.setStatusBarTranslate(this);
        StatusBarUtils.setSystemStatusTextColor(isStatusBarTextDark(), this);
    }

    protected boolean isStatusBarTextDark() {
        return false;
    }
}
